<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>  
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'welcome.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  </head>
  <body>
  
  	<fmt:formatDate value="${now}" pattern="yyyy/MM/dd"/>
  	<br/>
  
  	<spring:message code="welcome.title"/>
  	${pageContext.response.locale }
  	<br>
  	user:${user.userId}<br>
	<form:checkboxes items="${users}" path="user.userId" itemValue="userId" itemLabel="userName"/>
	Form:<br>
	<form:form method="post" action="/web/user/setUserAndRole" commandName="user">
		<form:errors path="*" /><br>
		userId:<form:input path="userId"/><br>
		userName:<form:input path="userName"/>
		<input type="submit" value="submit"/>
	</form:form>
	<br/>
	<form method="post" action="/web/user/setUserAndRole2">
		userId:<input name="userId"/><br>
		functionName:<input name="userName"/>
		roleId:<input name="role.id"/>
		<input type="submit" value="submit"/>
	</form>
	
	<form action="/web/user/testBind">
		Date:<input name="date"/>
		<input type="submit" value="submit"/>
	</form>
	<br/>
	Theme <spring:theme code="redColor"/>
	<br>
	Mail:<a href="mailto:${email }">${email }</a>
	<br>
	<a href="<%=request.getContextPath()%>/download/excel?fileName=eoyoyo">Excel Download:</a>
	<a href="<%=request.getContextPath()%>/download/pdf?fileName=poyoyo">PDF Download:</a>
  </body>
</html>
